package com.kanshu.ksgb.fastread.doudou.app.test

import android.content.Context
import android.support.v7.widget.RecyclerView
import android.util.AttributeSet
import com.kanshu.ksgb.fastread.doudou.common.util.ToastUtil
import com.kanshu.ksgb.fastread.doudou.module.book.bean.CpEntity

class ReaderRecyclerView(context: Context, attrs: AttributeSet) : RecyclerView(context, attrs) {

    var bookId:String? = null

    fun skipToChapter(chapterIndex: Int) {
        ToastUtil.showMessage("TODO skipToChapter")

    }

    fun getPageStatus(): Int {
        ToastUtil.showMessage("TODO getPageStatus")
        return 0
    }

//    fun getChapterPos(): Int {
//        ToastUtil.showMessage("TODO getChapterPos")
//        return 0
//    }

    fun getPagePos(): Int {
        ToastUtil.showMessage("TODO getPagePos")
        return 0
    }

    fun getCurChapterTitle(): String? {
        ToastUtil.showMessage("TODO getCurChapterTitle")
        return "TODO"
    }

    fun getHeadLine(): String? {
        ToastUtil.showMessage("TODO getHeadLine")
        return "TODO"
    }

    fun chapterError() {
        ToastUtil.showMessage("TODO chapterError")
    }

    fun skipToMark(chapter: Int, position: Int, textSize: Int) {
        ToastUtil.showMessage("TODO skipToMark")

    }

    fun setChapterOpen(b: Boolean) {
        ToastUtil.showMessage("TODO setChapterOpen")

    }

    fun bookOffline() {
        ToastUtil.showMessage("TODO bookOffline")
    }

    fun setHeadpageInfo(cp_info: CpEntity?) {

    }

    fun chapterEmpty() {

    }

}